Skip to content

Cut down time it takes to run base provider unit tests by 95% (Infra)#943

Merged
Hook25 merged 1 commit into
mainfrom
dont-sleep-when-testing
Jan 17, 2024
Merged

Cut down time it takes to run base provider unit tests by 95% (Infra)#943
Hook25 merged 1 commit into
mainfrom
dont-sleep-when-testing

Conversation

@kissiel
Copy link
Copy Markdown
Contributor

@kissiel kissiel commented Jan 17, 2024

Description

There were multiple tests that were calling the real time.sleep().
The patch proposed here mocks them out.

This got the wall-time of running the tests from 19s to 0.85s.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (228b716) 38.98% compared to head (2bb5a65) 38.98%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #943   +/-   ##
=======================================
  Coverage   38.98%   38.98%           
=======================================
  Files         315      315           
  Lines       34893    34893           
  Branches     5971     5971           
=======================================
  Hits        13604    13604           
  Misses      20678    20678           
  Partials      611      611           
Flag Coverage Δ
provider-base 10.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, ty

@Hook25 Hook25 merged commit f31e500 into main Jan 17, 2024
@Hook25 Hook25 deleted the dont-sleep-when-testing branch January 17, 2024 13:49
LiaoU3 pushed a commit to LiaoU3/checkbox that referenced this pull request Mar 20, 2024
binli pushed a commit to binli/checkbox that referenced this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants